// rooms模型，包含以下字段
import mongoose from 'mongoose';
const Scheam = mongoose.Schema
const RoomsScheam = new Scheam({
  room_id: {
    type: String,
    required: true,
    unique: true
  },
  room_name: {
    type: String,
    required: true
  },
  create_time: {
    type: String,
    required: true
  },
  create_user_name: {
    type: String
  },
  create_user_id: {
    type: String,
    required: true
  },
  update_time: {
    type: String
  }
})

module.exports = {
  Rooms: mongoose.model('rooms', RoomsScheam)
}